﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Decisions.HL7.DataTypes
{
    [DataContract]
    public abstract class AbstractGroup : AbstractHL7ParseableEntity
    {
        // The owning entity will check to see if any data was consumed here so all we have to do 
        // is go through our map of entites and try to consume the data in the available data
        // array.
            
        internal abstract void ConsumeTextSegmentsForGroup(Stack<string> availableData, HL7ParserOptions options);

        internal abstract bool CanConsume(string availableData, HL7ParserOptions options);

    }
}
